]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
magnifier: Use core idletime monitor
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 5 Feb 2020 15:49:34 +0000 (16:49 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 5 Feb 2020 16:17:30 +0000 (16:17 +0000)
As it's getting the idletime monitor for the seat pointer, boils
down to about the same thing. We are moving away from per-device
idletime monitors though.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/978

js/ui/magnifier.js

index 953277dd93ed96f9bb8e2595cc65de3e319cec40..d7d3506a57cbcb8cb250c03abfd55c8a418dcccc 100644 (file)
@@ -745,8 +745,7 @@ var ZoomRegion = class ZoomRegion {
         this._xCaret = 0;
         this._yCaret = 0;
 
-        let seat = Clutter.get_default_backend().get_default_seat();
-        this._pointerIdleMonitor = Meta.IdleMonitor.get_for_device(seat.get_pointer());
+        this._pointerIdleMonitor = Meta.IdleMonitor.get_core();
         this._scrollContentsTimerId = 0;
     }